#define _CRT_SECURE_NO_WARNINGS	

void Move_Front_Array(char* s, int x, int y)
{
    if (x == y)
    {
        s[x - 2] = '\0';
    }
    else
    {
        for (int i = x; i < y; i++)
        {
            s[i - 2] = s[i];
        }
        s[y - 2] = '\0';
    }
}

char* makeGood(char* s)
{
    int len = strlen(s);
    for (int i = 0; i < len - 1; i++)
    {
        if (abs(s[i] - s[i + 1]) == 32)
        {
            Move_Front_Array(s, i + 2, len);
            i = -1;
        }
        len = strlen(s);
    }
    return s;
}